package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2018/11/21.
 * Des:
 */
@Entity
@Table(name = "yd_team_t", schema = "jshoperxms", catalog = "")
public class YdTeamT {
    private String id;
    private String leadermemberid;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private String leadername;
    private String dayleynotice;
    private String wxopenid;
    private String teamname;
    private String teamdes;
    private String type;
    private int maxmember;
    private String teamavatarurl;
    private String storeid;
    private String isreviewed;
    private long reviewedtime;
    private int totalyuedu;
    private int totalleafs;
    private int totalshare;
    private int totalstrees;
    private int hotper;
    private String teaminvitecode;
    private String teamno;
    private String teamcategory;
    private String teamcategoryid;
    private int currentmember;
    private String recommend;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "LEADERMEMBERID", nullable = false, length = 25)
    public String getLeadermemberid() {
        return leadermemberid;
    }

    public void setLeadermemberid(String leadermemberid) {
        this.leadermemberid = leadermemberid;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "LEADERNAME", nullable = false, length = 100)
    public String getLeadername() {
        return leadername;
    }

    public void setLeadername(String leadername) {
        this.leadername = leadername;
    }

    @Basic
    @Column(name = "DAYLEYNOTICE", nullable = false, length = 200)
    public String getDayleynotice() {
        return dayleynotice;
    }

    public void setDayleynotice(String dayleynotice) {
        this.dayleynotice = dayleynotice;
    }

    @Basic
    @Column(name = "WXOPENID", nullable = false, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "TEAMNAME", nullable = false, length = 45)
    public String getTeamname() {
        return teamname;
    }

    public void setTeamname(String teamname) {
        this.teamname = teamname;
    }

    @Basic
    @Column(name = "TEAMDES", nullable = false, length = 100)
    public String getTeamdes() {
        return teamdes;
    }

    public void setTeamdes(String teamdes) {
        this.teamdes = teamdes;
    }

    @Basic
    @Column(name = "TYPE", nullable = false, length = 1)
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "MAXMEMBER", nullable = false)
    public int getMaxmember() {
        return maxmember;
    }

    public void setMaxmember(int maxmember) {
        this.maxmember = maxmember;
    }

    @Basic
    @Column(name = "TEAMAVATARURL", nullable = false, length = 255)
    public String getTeamavatarurl() {
        return teamavatarurl;
    }

    public void setTeamavatarurl(String teamavatarurl) {
        this.teamavatarurl = teamavatarurl;
    }

    @Basic
    @Column(name = "STOREID", nullable = false, length = 25)
    public String getStoreid() {
        return storeid;
    }

    public void setStoreid(String storeid) {
        this.storeid = storeid;
    }

    @Basic
    @Column(name = "ISREVIEWED", nullable = false, length = 1)
    public String getIsreviewed() {
        return isreviewed;
    }

    public void setIsreviewed(String isreviewed) {
        this.isreviewed = isreviewed;
    }

    @Basic
    @Column(name = "REVIEWEDTIME", nullable = false)
    public long getReviewedtime() {
        return reviewedtime;
    }

    public void setReviewedtime(long reviewedtime) {
        this.reviewedtime = reviewedtime;
    }

    @Basic
    @Column(name = "TOTALYUEDU", nullable = false)
    public int getTotalyuedu() {
        return totalyuedu;
    }

    public void setTotalyuedu(int totalyuedu) {
        this.totalyuedu = totalyuedu;
    }

    @Basic
    @Column(name = "TOTALLEAFS", nullable = false)
    public int getTotalleafs() {
        return totalleafs;
    }

    public void setTotalleafs(int totalleafs) {
        this.totalleafs = totalleafs;
    }

    @Basic
    @Column(name = "TOTALSHARE", nullable = false)
    public int getTotalshare() {
        return totalshare;
    }

    public void setTotalshare(int totalshare) {
        this.totalshare = totalshare;
    }

    @Basic
    @Column(name = "TOTALSTREES", nullable = false)
    public int getTotalstrees() {
        return totalstrees;
    }

    public void setTotalstrees(int totalstrees) {
        this.totalstrees = totalstrees;
    }

    @Basic
    @Column(name = "HOTPER", nullable = false)
    public int getHotper() {
        return hotper;
    }

    public void setHotper(int hotper) {
        this.hotper = hotper;
    }

    @Basic
    @Column(name = "TEAMINVITECODE", nullable = false, length = 45)
    public String getTeaminvitecode() {
        return teaminvitecode;
    }

    public void setTeaminvitecode(String teaminvitecode) {
        this.teaminvitecode = teaminvitecode;
    }

    @Basic
    @Column(name = "TEAMNO", nullable = false, length = 25)
    public String getTeamno() {
        return teamno;
    }

    public void setTeamno(String teamno) {
        this.teamno = teamno;
    }

    @Basic
    @Column(name = "TEAMCATEGORY", nullable = false, length = 45)
    public String getTeamcategory() {
        return teamcategory;
    }

    public void setTeamcategory(String teamcategory) {
        this.teamcategory = teamcategory;
    }

    @Basic
    @Column(name = "TEAMCATEGORYID", nullable = false, length = 25)
    public String getTeamcategoryid() {
        return teamcategoryid;
    }

    public void setTeamcategoryid(String teamcategoryid) {
        this.teamcategoryid = teamcategoryid;
    }

    @Basic
    @Column(name = "CURRENTMEMBER", nullable = false)
    public int getCurrentmember() {
        return currentmember;
    }

    public void setCurrentmember(int currentmember) {
        this.currentmember = currentmember;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdTeamT teamT = (YdTeamT) o;

        if (createtime != teamT.createtime) return false;
        if (updatetime != teamT.updatetime) return false;
        if (versiont != teamT.versiont) return false;
        if (maxmember != teamT.maxmember) return false;
        if (reviewedtime != teamT.reviewedtime) return false;
        if (totalyuedu != teamT.totalyuedu) return false;
        if (totalleafs != teamT.totalleafs) return false;
        if (totalshare != teamT.totalshare) return false;
        if (totalstrees != teamT.totalstrees) return false;
        if (hotper != teamT.hotper) return false;
        if (currentmember != teamT.currentmember) return false;
        if (id != null ? !id.equals(teamT.id) : teamT.id != null) return false;
        if (leadermemberid != null ? !leadermemberid.equals(teamT.leadermemberid) : teamT.leadermemberid != null)
            return false;
        if (status != null ? !status.equals(teamT.status) : teamT.status != null) return false;
        if (creatorid != null ? !creatorid.equals(teamT.creatorid) : teamT.creatorid != null) return false;
        if (leadername != null ? !leadername.equals(teamT.leadername) : teamT.leadername != null) return false;
        if (dayleynotice != null ? !dayleynotice.equals(teamT.dayleynotice) : teamT.dayleynotice != null) return false;
        if (wxopenid != null ? !wxopenid.equals(teamT.wxopenid) : teamT.wxopenid != null) return false;
        if (teamname != null ? !teamname.equals(teamT.teamname) : teamT.teamname != null) return false;
        if (teamdes != null ? !teamdes.equals(teamT.teamdes) : teamT.teamdes != null) return false;
        if (type != null ? !type.equals(teamT.type) : teamT.type != null) return false;
        if (teamavatarurl != null ? !teamavatarurl.equals(teamT.teamavatarurl) : teamT.teamavatarurl != null)
            return false;
        if (storeid != null ? !storeid.equals(teamT.storeid) : teamT.storeid != null) return false;
        if (isreviewed != null ? !isreviewed.equals(teamT.isreviewed) : teamT.isreviewed != null) return false;
        if (teaminvitecode != null ? !teaminvitecode.equals(teamT.teaminvitecode) : teamT.teaminvitecode != null)
            return false;
        if (teamno != null ? !teamno.equals(teamT.teamno) : teamT.teamno != null) return false;
        if (teamcategory != null ? !teamcategory.equals(teamT.teamcategory) : teamT.teamcategory != null) return false;
        if (teamcategoryid != null ? !teamcategoryid.equals(teamT.teamcategoryid) : teamT.teamcategoryid != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (leadermemberid != null ? leadermemberid.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + (leadername != null ? leadername.hashCode() : 0);
        result = 31 * result + (dayleynotice != null ? dayleynotice.hashCode() : 0);
        result = 31 * result + (wxopenid != null ? wxopenid.hashCode() : 0);
        result = 31 * result + (teamname != null ? teamname.hashCode() : 0);
        result = 31 * result + (teamdes != null ? teamdes.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + maxmember;
        result = 31 * result + (teamavatarurl != null ? teamavatarurl.hashCode() : 0);
        result = 31 * result + (storeid != null ? storeid.hashCode() : 0);
        result = 31 * result + (isreviewed != null ? isreviewed.hashCode() : 0);
        result = 31 * result + (int) (reviewedtime ^ (reviewedtime >>> 32));
        result = 31 * result + totalyuedu;
        result = 31 * result + totalleafs;
        result = 31 * result + totalshare;
        result = 31 * result + totalstrees;
        result = 31 * result + hotper;
        result = 31 * result + (teaminvitecode != null ? teaminvitecode.hashCode() : 0);
        result = 31 * result + (teamno != null ? teamno.hashCode() : 0);
        result = 31 * result + (teamcategory != null ? teamcategory.hashCode() : 0);
        result = 31 * result + (teamcategoryid != null ? teamcategoryid.hashCode() : 0);
        result = 31 * result + currentmember;
        return result;
    }

    @Basic
    @Column(name = "RECOMMEND", nullable = false, length = 1)
    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }
}
